package com.ie.cloud.payment;

import com.ie.cloud.payment.cache.RedisUtil;
import com.ie.cloud.payment.constants.CS;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPubSub;

@SpringBootApplication
@EnableAsync
@EnableScheduling
public class PaymentApplication {

    public static void main(String[] args) {
        System.out.println("=============================支付服务开始启动===========================================");
        SpringApplication.run(PaymentApplication.class, args);
        Object verifySwitch = RedisUtil.getObject(CS.VERIFY_SWITCH);
        if (verifySwitch == null || verifySwitch.equals(Boolean.FALSE.toString())) {
            System.out.println("未开启验证");
        }else {
            System.out.println("开启验证");
        }
        System.out.println("=============================支付服务启动成功===========================================");
    }



}
